package dao;

import pojo.Admin;
import pojo.Room;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 * Dao 层接口
 */
public interface RoomDao {
    //查询所有房间信息
    public abstract ArrayList<Room> findAll();

    //根据房间id获取房间信息
    public abstract Room findById(Integer dormId);

    //新增房间信息
    public abstract int insert(Room room);

    //修改房间信息
    public abstract int update(Room room);

    //删除房间信息
    public abstract int delete(Connection con,Room room) throws SQLException;
}
